# TextConst.IndexOfAny(List of [Char] [, Integer]) Method
> Version: _Available or changed with runtime version 15.1._
Reports the one-based index of the first occurrence in this instance of any character in a specified array of Unicode characters. The search starts at a specified character position.
## Syntax
```al
Index :=   TextConst.IndexOfAny(Values: List of [Char] [, StartIndex: Integer])
```
## Parameters
TextConst
Type: textconst-data-type
An instance of the textconst-data-type data type.
Values
Type: List of [Char]<../list/list-data-type>
The collection of characters to seek.
*[Optional] StartIndex*
Type: ../integer/integer-data-type
The one-based search starting position.
## Return Value
Index
Type: ../integer/integer-data-type
The one-based index of the first occurrence of the specified string in this instance. If the index returned is 0, the value is not present in the string.
## See Also
textconst-data-type
Getting started with AL<../../devenv-get-started>
Developing extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/textconst/textconst-indexofany-list[char]-integer-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/textconst/textconst-indexofany-list[char]-integer-method/
